package com.xf.spring.factoryBean;

import org.springframework.context.support.ClassPathXmlApplicationContext;


public class Test {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ct = new ClassPathXmlApplicationContext("xmls/bean-beanFactory.xml");
        Car car = (Car) ct.getBean("car");
        System.out.println(car);
        ct.close();
    }

}
